Skip to content

Conversation

@kimssirr
Copy link
Contributor

@kimssirr kimssirr commented Oct 22, 2025

📌 연관 이슈

🌱 PR 요약

한국관광공사 API 응답에서 areaCode, sigunguCode 필드가 null로 파싱되는 문제를 해결했습니다.

🛠 작업 내용

기존 문제: [TatsCnctr] 정확한 지역 코드 매칭 실패, area 코드만으로 재시도: area=null, sigungu=null

  • KorService2Response.LocationBasedListResponseDto에서 areaCode, sigunguCode 필드의 Jackson 어노테이션을 @JacksonXmlProperty에서 @JsonProperty로 변경
  • 한국관광공사 API가 JSON 응답을 반환하는데 XML용 어노테이션을 사용하여 필드 매핑이 실패하던 문제를 수정
  • 이를 통해 혼잡도 조회 서비스(TatsCnctrService.getCnctrRate)에서 올바른 지역 코드를 받아 처리할 수 있도록 개선

📸 상세 이미지

image

@kimssirr kimssirr requested a review from lilloo04 October 22, 2025 15:46
@kimssirr kimssirr self-assigned this Oct 22, 2025
@kimssirr kimssirr merged commit 685bdd5 into dev Oct 22, 2025
1 check passed
@lilloo04 lilloo04 deleted the fix/#99 branch December 10, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: 한적함 등급 에러

2 participants